<?php
namespace app\api\model;

/**
 * Created by PhpStorm.
 * User: muyu
 * Date: 2018/1/25
 * Time: 20:31
 */
class BannerItem extends  BaseModel {
    protected $hidden = ['key_word','delete_time','banner_id','update_time','img_id','type'];
    public function img(){
        return $this->belongsTo('Image','img_id','id');//一对一关联
    }

}